﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class MetricValueHelpers
   | CodeJam </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class MetricValueHelpers
   | CodeJam ">
    <meta name="generator" content="docfx 2.23.1.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <meta property="docfx:rel" content="../../">
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../images/CodeJam.Main.Icon.png" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items"></div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers">
  
  
  <h1 id="CodeJam_PerfTests_Metrics_MetricValueHelpers" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers" class="text-break">Class MetricValueHelpers
  </h1>
  <div class="markdown level0 summary"><p>Extension methods for <a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnit.html">MetricUnit</a> and <a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnitScale.html">MetricUnitScale</a>. </p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">MetricValueHelpers</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CodeJam.PerfTests.Metrics.html">CodeJam.PerfTests.Metrics</a></h6>
  <h6><strong>Assembly</strong>: CodeJam.PerfTests.dll</h6>
  <h5 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class MetricValueHelpers</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_ContainsWithRounding_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.ContainsWithRounding(CodeJam.PerfTests.Metrics.MetricRange%2CCodeJam.PerfTests.Metrics.MetricRange%2CCodeJam.PerfTests.Metrics.MetricUnit)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L124">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ContainsWithRounding_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ContainsWithRounding*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ContainsWithRounding_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ContainsWithRounding(CodeJam.PerfTests.Metrics.MetricRange,CodeJam.PerfTests.Metrics.MetricRange,CodeJam.PerfTests.Metrics.MetricUnit)">ContainsWithRounding(MetricRange, MetricRange, MetricUnit)</h4>
  <div class="markdown level1 summary"><p>Determines whether the range contains another one. 
The check is performed using same rounding that will be used to store the <code data-dev-comment-type="paramref" class="paramref">metricValues</code>.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool ContainsWithRounding(this MetricRange metricValues, MetricRange other, MetricUnit metricUnit)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><span class="parametername">metricValues</span></td>
        <td><p>Range of metric values.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><span class="parametername">other</span></td>
        <td><p>The metric range to check.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnit.html">MetricUnit</a></td>
        <td><span class="parametername">metricUnit</span></td>
        <td><p>The metric measurement unit that will be used to store the <code data-dev-comment-type="paramref" class="paramref">metricValues</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code>, if the range contains another one.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_CreateMetricRange_System_Nullable_System_Double__System_Nullable_System_Double__.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.CreateMetricRange(System.Nullable%7BSystem.Double%7D%2CSystem.Nullable%7BSystem.Double%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L28">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_CreateMetricRange_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.CreateMetricRange*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_CreateMetricRange_System_Nullable_System_Double__System_Nullable_System_Double__" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.CreateMetricRange(System.Nullable{System.Double},System.Nullable{System.Double})">CreateMetricRange(Nullable&lt;Double&gt;, Nullable&lt;Double&gt;)</h4>
  <div class="markdown level1 summary"><p>Creates a new metric range.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static MetricRange CreateMetricRange(double ? min, double ? max)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Double</span>&gt;</td>
        <td><span class="parametername">min</span></td>
        <td><p>The minimum value.
The <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html#CodeJam_PerfTests_Metrics_MetricRange_EmptyMetricValue">EmptyMetricValue</a>  marks the range as unset but updateable during the annotation.
Use <code>null</code> or <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a> to set min value to negative infinity (ignored, essentially).</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Double</span>&gt;</td>
        <td><span class="parametername">max</span></td>
        <td><p>The maximum value.
Use <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html#CodeJam_PerfTests_Metrics_MetricRange_EmptyMetricValue">EmptyMetricValue</a>
to mark the range as unset but updateable during the annotation.
Use <code>null</code> or <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html#CodeJam_PerfTests_Metrics_MetricRange_ToPositiveInfinity">ToPositiveInfinity</a> to set max value to positive infinity (ignored, essentially).</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><p>Metrics range.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_CreateMetricRange_System_Nullable_System_Double__System_Nullable_System_Double__CodeJam_PerfTests_Metrics_MetricUnit_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.CreateMetricRange(System.Nullable%7BSystem.Double%7D%2CSystem.Nullable%7BSystem.Double%7D%2CCodeJam.PerfTests.Metrics.MetricUnit)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L44">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_CreateMetricRange_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.CreateMetricRange*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_CreateMetricRange_System_Nullable_System_Double__System_Nullable_System_Double__CodeJam_PerfTests_Metrics_MetricUnit_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.CreateMetricRange(System.Nullable{System.Double},System.Nullable{System.Double},CodeJam.PerfTests.Metrics.MetricUnit)">CreateMetricRange(Nullable&lt;Double&gt;, Nullable&lt;Double&gt;, MetricUnit)</h4>
  <div class="markdown level1 summary"><p>Creates a new metric range.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static MetricRange CreateMetricRange(double ? min, double ? max, MetricUnit metricUnit)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Double</span>&gt;</td>
        <td><span class="parametername">min</span></td>
        <td><p>The minimum value.
The <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html#CodeJam_PerfTests_Metrics_MetricRange_EmptyMetricValue">EmptyMetricValue</a> marks the range as unset but updateable during the annotation.
Use <code>null</code> or <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html#CodeJam_PerfTests_Metrics_MetricRange_EmptyMetricValue">EmptyMetricValue</a> to set min value to negative infinity (ignored, essentially).</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.Double</span>&gt;</td>
        <td><span class="parametername">max</span></td>
        <td><p>The maximum value.
Use <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a>
to mark the range as unset but updateable during the annotation.
Use <code>null</code> or <a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a> to set max value to positive infinity (ignored, essentially).</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnit.html">MetricUnit</a></td>
        <td><span class="parametername">metricUnit</span></td>
        <td><p>The metric unit that was used to store metric range.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><p>Metrics range.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_GetAutoscaledFormat_System_Double_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.GetAutoscaledFormat(System.Double)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L103">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_GetAutoscaledFormat_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.GetAutoscaledFormat*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_GetAutoscaledFormat_System_Double_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.GetAutoscaledFormat(System.Double)">GetAutoscaledFormat(Double)</h4>
  <div class="markdown level1 summary"><p>Gets the autoscaled format for the value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string GetAutoscaledFormat(double value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>Autoscaled format for the value</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_GetMinMaxString_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_System_String__System_String__.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.GetMinMaxString(CodeJam.PerfTests.Metrics.MetricRange%2CCodeJam.PerfTests.Metrics.MetricUnit%2CSystem.String%40%2CSystem.String%40)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L236">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_GetMinMaxString_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.GetMinMaxString*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_GetMinMaxString_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_System_String__System_String__" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.GetMinMaxString(CodeJam.PerfTests.Metrics.MetricRange,CodeJam.PerfTests.Metrics.MetricUnit,System.String@,System.String@)">GetMinMaxString(MetricRange, MetricUnit, out String, out String)</h4>
  <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> representation of min and max parts of a metric value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void GetMinMaxString(this MetricRange metricValues, MetricUnit metricUnit, out string minString, out string maxString)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><span class="parametername">metricValues</span></td>
        <td><p>Range of metric values.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnit.html">MetricUnit</a></td>
        <td><span class="parametername">metricUnit</span></td>
        <td><p>The metric measurement unit.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">minString</span></td>
        <td><p>String representation of min part of a metric value.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">maxString</span></td>
        <td><p>String representation of max part of a metric value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_MinMaxAreSame_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.MinMaxAreSame(CodeJam.PerfTests.Metrics.MetricRange%2CCodeJam.PerfTests.Metrics.MetricUnit)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L147">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_MinMaxAreSame_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.MinMaxAreSame*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_MinMaxAreSame_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.MinMaxAreSame(CodeJam.PerfTests.Metrics.MetricRange,CodeJam.PerfTests.Metrics.MetricUnit)">MinMaxAreSame(MetricRange, MetricUnit)</h4>
  <div class="markdown level1 summary"><p>Determines whether the range can be represented as a single point range
(scaled and rounded min and max are the same).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static bool MinMaxAreSame(this MetricRange metricValues, MetricUnit metricUnit)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><span class="parametername">metricValues</span></td>
        <td><p>Range of metric values.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnit.html">MetricUnit</a></td>
        <td><span class="parametername">metricUnit</span></td>
        <td><p>The metric measurement unit that will be used to store the <code data-dev-comment-type="paramref" class="paramref">metricValues</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code>, if the range can be represented as a single point range.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(CodeJam.PerfTests.Metrics.MetricRange%2CCodeJam.PerfTests.Metrics.MetricUnit)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L219">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnit_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(CodeJam.PerfTests.Metrics.MetricRange,CodeJam.PerfTests.Metrics.MetricUnit)">ToString(MetricRange, MetricUnit)</h4>
  <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> representation of a metric value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToString(this MetricRange metricValues, MetricUnit metricUnit)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><span class="parametername">metricValues</span></td>
        <td><p>Range of metric values.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnit.html">MetricUnit</a></td>
        <td><span class="parametername">metricUnit</span></td>
        <td><p>The metric measurement unit.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>A <span class="xref">System.String</span> that represents the metric value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnitScale_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(CodeJam.PerfTests.Metrics.MetricRange%2CCodeJam.PerfTests.Metrics.MetricUnitScale)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L211">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_CodeJam_PerfTests_Metrics_MetricRange_CodeJam_PerfTests_Metrics_MetricUnitScale_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(CodeJam.PerfTests.Metrics.MetricRange,CodeJam.PerfTests.Metrics.MetricUnitScale)">ToString(MetricRange, MetricUnitScale)</h4>
  <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> representation of a metric value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToString(this MetricRange metricValues, MetricUnitScale metricUnitScale)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricRange.html">MetricRange</a></td>
        <td><span class="parametername">metricValues</span></td>
        <td><p>Range of metric values.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnitScale.html">MetricUnitScale</a></td>
        <td><span class="parametername">metricUnitScale</span></td>
        <td><p>The metric measurement scale.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>A <span class="xref">System.String</span> that represents the metric value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_System_Double_CodeJam_PerfTests_Metrics_MetricUnit_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(System.Double%2CCodeJam.PerfTests.Metrics.MetricUnit)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L195">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_System_Double_CodeJam_PerfTests_Metrics_MetricUnit_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(System.Double,CodeJam.PerfTests.Metrics.MetricUnit)">ToString(Double, MetricUnit)</h4>
  <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> representation of a metric value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToString(this double metricValue, MetricUnit metricUnit)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">metricValue</span></td>
        <td><p>The metric value.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnit.html">MetricUnit</a></td>
        <td><span class="parametername">metricUnit</span></td>
        <td><p>The metric measurement unit.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>A <span class="xref">System.String</span> that represents the metric value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_System_Double_CodeJam_PerfTests_Metrics_MetricUnitScale_.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(System.Double%2CCodeJam.PerfTests.Metrics.MetricUnitScale)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L187">View Source</a>
  </span>
  <a id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString*"></a>
  <h4 id="CodeJam_PerfTests_Metrics_MetricValueHelpers_ToString_System_Double_CodeJam_PerfTests_Metrics_MetricUnitScale_" data-uid="CodeJam.PerfTests.Metrics.MetricValueHelpers.ToString(System.Double,CodeJam.PerfTests.Metrics.MetricUnitScale)">ToString(Double, MetricUnitScale)</h4>
  <div class="markdown level1 summary"><p>Returns a <span class="xref">System.String</span> representation of a metric value.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static string ToString(this double metricValue, MetricUnitScale metricUnitScale)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">metricValue</span></td>
        <td><p>The metric value.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="CodeJam.PerfTests.Metrics.MetricUnitScale.html">MetricUnitScale</a></td>
        <td><span class="parametername">metricUnitScale</span></td>
        <td><p>The metric measurement scale.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><p>A <span class="xref">System.String</span> that represents the metric value.</p>
</td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_PerfTests_Metrics_MetricValueHelpers.md&amp;value=---%0Auid%3A%20CodeJam.PerfTests.Metrics.MetricValueHelpers%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/blob/master/PerfTests/src/[L1_CompetitionApi]/Metrics/[MetricValues]/MetricValueHelpers.cs/#L11" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            Copyright � 2015-2017
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
